package cn.dglydrpy.study.mmail.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
// basePackages 指定Fegin接口的路径
@EnableFeignClients(basePackages = "cn.dglydrpy.study.mmail.product.feign")
// 放开注册中心
@EnableDiscoveryClient
// 指定Mapper接口对应的路径
@MapperScan("cn.dglydrpy.study.mmail.product.dao")
@ComponentScan(basePackages = "cn.dglydrpy.study.mmail")
public class ProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(ProductApplication.class, args);
    }

}
